'use strict';

var app = angular.module('Barcode');

app.service('BarcodeEnum', [function(){
    return {
    	//条码类型
        BarcodeType: {
            ItemMaster: {Value: 0, Text: '物料'},
            Part: {Value: 1, Text: '部件'},
            Warehouse: {Value: 2, Text: '仓库'},
            Container: {Value: 3, Text: '容器'},
            Device: {Value: 4, Text: '设备'},
            Person: {Value: 5, Text: '人'},
            Other: {Value: 6, Text: '其他'}
        },
        //业务类型
        BusinessStatus: {
            Start: {Value: 0, Text: '开始'},
            Complete: {Value: 1, Text: '完成'}
        },
        //质检类型
        QCType: {
            All: {Value: 0, Text: '全检'},
            Patrol: {Value: 1, Text: '巡检'},
            First: {Value: 2, Text: '首检'}
        },
        //质检状态
        QCStatus: {
            Qualified: {Value: 0, Text: '合格'},
            Failure: {Value: 1, Text: '不合格'},
            Concession: {Value: 2, Text: '让步接收'},
            Quality: {Value: 3, Text: '品质判定'},
            Rework: {Value: 4, Text: '返工'},
            Scrap: {Value: 5, Text: '报废'}
        },
        //业务类型
        AssemblyType: {
            Assembly: {Value: 0, Text: '装配'},
            Container: {Value: 1, Text: '容器'}
        },
    };
}]);

